package com.teama4.shop.service;

import com.teama4.shop.domain.Category;
import com.teama4.shop.domain.CategoryExample;
import com.teama4.shop.mapper.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService{
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public long countByExample(CategoryExample example) {
        return categoryMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CategoryExample example) {
        return categoryMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return categoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Category record) {
        return categoryMapper.insert(record);
    }

    @Override
    public int insertSelective(Category record) {
        return categoryMapper.insertSelective(record);
    }

    @Override
    public List<Category> selectByExampleWithBLOBs(CategoryExample example) {
        return categoryMapper.selectByExampleWithBLOBs(example);
    }

    @Override
    public List<Category> selectByExample(CategoryExample example) {
        return categoryMapper.selectByExample(example);
    }

    @Override
    public Category selectByPrimaryKey(Integer id) {
        return categoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(Category record, CategoryExample example) {
        return categoryMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExampleWithBLOBs(Category record, CategoryExample example) {
        return categoryMapper.updateByExampleWithBLOBs(record,example);
    }

    @Override
    public int updateByExample(Category record, CategoryExample example) {
        return categoryMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Category record) {
        return categoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(Category record) {
        return categoryMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(Category record) {
        return categoryMapper.updateByPrimaryKey(record);
    }
}
